﻿@using GdHotel.Data
@model Gallery

@{ var items = Model.GetLinksAsArray(); }

@if (items.Count() > 0)
{
    <div class="photo_block">
        <div class="in_photo_block">
            <div  class="main_image shadow">
                <div class="image_wrap">
                    <img src="@Url.Content(items.FirstOrDefault())" width="638px" height="353px" alt="" />
                </div>
            </div>
            <div  class="image_thumb">
                <ul>
                    @foreach (var item in items)
                    {
                        <li src="@Url.Content(item)">
                            <div class="shadow">
                                <span>
                                    <img src="@Url.Content(item)" width="178px" height="126px"  alt="" />
                                </span>
                            </div></li>
                    }
                </ul>

            </div>
        </div>				
    </div>
}